#
# Builds the *.gem file
#
build:
	gem build *.gemspec

#
# Install the *.gem file (including the binary 't')
#
install:
	gem install *.gem

#
# Cleans up the development environment (removed *.gem files etc)
#
clean:
	find . -name *.gem -exec rm {} \;

#
# Deploy the current built gem to RubyGems
#
deploy:
	gem push *.gem

#
# Installs all dependencies for this gem
#
init:
	bundle install

#
# Runs all unit tests
#
test:
	rake test

#
# Lints all Ruby code
#
lint:
	bundle exec rubocop

.PHONY: build install init test lint
